﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Walking.Master" CodeBehind="routes.aspx.vb" Inherits="walkingweb.routes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        &nbsp;<br />
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" DataKeyNames="RouteID" 
        DataSourceID="routelisting" AutoGenerateColumns="False" Width="90%" 
        BorderColor="#336600" BorderStyle="Groove" GridLines="Horizontal">
        <Columns>
            <asp:BoundField DataField="RouteName" HeaderText="RouteName" 
                SortExpression="RouteName" />
            <asp:BoundField DataField="CityTown" HeaderText="CityTown" 
                SortExpression="CityTown" />
            <asp:BoundField DataField="Country" HeaderText="Country" 
                SortExpression="Country" />
            <asp:BoundField DataField="Distance" HeaderText="Distance" 
                SortExpression="Distance" />
            <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                <ControlStyle Height="150px" Width="150px" />
                <ItemStyle Height="150px" Width="150px" />
            </asp:ImageField>
            <asp:BoundField DataField="DateAdded" HeaderText="DateAdded" 
                SortExpression="DateAdded" />
            <asp:HyperLinkField DataNavigateUrlFields="RouteID" 
                DataNavigateUrlFormatString="routeinfo.aspx?RouteID={0}" 
                DataTextField="RouteID" DataTextFormatString="Read More" 
                HeaderText="Information on Route" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="routelisting" runat="server" 
        ConnectionString="<%$ ConnectionStrings:walkingweb %>" 
        ProviderName="<%$ ConnectionStrings:walkingweb.ProviderName %>" 
        SelectCommand="SELECT * FROM [routes]"></asp:SqlDataSource>
</p>
<hr />
<p>
    &nbsp;</p>
<p>
    Have you recently been on a walk you enjoyed and would like to share with 
    others?&nbsp; Please do share it with our other walking enthousiasts.&nbsp;
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/addroute.aspx">Go to add a route page</asp:HyperLink> - Members Only
</p>
    <p>
</p>
</asp:Content>
